import request from '@/utils/request'

export function getOrderList(params) {
  return request({
    url: '/distributor/orders',
    method: 'get',
    params: params
  })
}
export function getOrderDetail(orderId) {
  return request({
    url: '/distributor/orders/' + orderId,
    method: 'get'
  })
}
export function ordersRefund(data) {
  return request({
    url: '/distributor/orders/refund',
    method: 'post',
    data
  })
}
export function checkOrdersRefundNum(data) {
  return request({
    url: 'order/refund/apply/amount',
    method: 'get',
    params: data
  })
}
export function getOrderCode(params) {
  return request({
    url: '/distributor/orders/code/list',
    method: 'get',
    params: params
  })
}
export function getOrderStatus() {
  return request({
    url: '/order/status/list',
    method: 'get'
  })
}

